package cn.itcast.tanhua.api;



import cn.itcast.eunms.CommentType;
import cn.itcast.mongo.Comment;
import cn.itcast.mongo.Video;
import cn.itcast.vo.PageResult;
import org.bson.types.ObjectId;

import java.util.List;

public interface VideoApi {

    /**
     * 保存小视频
     */
    String save(Video video);

    List<Video> queryVideoList(int i, Integer pagesize);

    List<Video> findMovementsByVids(List<Long> vids);

    Boolean hasComment(ObjectId id, Long userId, CommentType like);

    PageResult findByUserId(Integer page, Integer pagesize, Long uid);

    Integer likeTest(Comment comment);

    Integer delete(Comment comment);

    Boolean hasCommentTest(String id, Long userId, CommentType like);

    Integer saveTest(Comment comments);

    List<Comment> findComments(ObjectId id, CommentType comment, Integer page, Integer pagesize);

    Boolean CommentTest(String id, Long userId, CommentType focus);
}